package com.sharemarking.application.common.service;




import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;



import com.sharemarking.application.common.entity.Employee;
import com.sharemarking.application.common.repository.EmployeeRepo;


@Controller
@RequestMapping("function")
public class PhoneEmployeeController {
	
	
	@Autowired
	private EmployeeRepo er;

	@RequestMapping(value = "findemployee")
	@ResponseBody
	public Employee findemployee(Employee employee) {
		//员工
		Employee employee1=er.findOne(employee.getCreateBy());
		
		
		return employee1;
	}
	
	

}
